//==============================================================================
// Military School_anim.txt
//==============================================================================

import Construction_defines_anim.txt

//==============================================================================
define Dust
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Building DustA
      }
   }  
}


//==============================================================================
define CypressA
{
   set hotspot
   {
      version
      {
         Visual Terrain G CypressA
      }
   }  
}

//==============================================================================
anim idle
{
   SetSelector
   {
      SetSelector
      {
         TechLogic age 3/age 4
         SetSelector
         {
            ConstructionLogic 0 50
            set hotspot
            {
               version
               {
		Visual building x academy
                        connect LeftFoot CypressA hotspot
                        connect RightFoot CypressA hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction Medium A
		            connect attachpoint G_Long_Brick hotspot
		            connect face G_Long_Brick hotspot
		            connect chin G_Medium_Brick hotspot
		            connect leftfoot G_Medium_Brick hotspot
		            connect lefthand G_Small_Brick hotspot
		            connect leftleg G_Small_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction Medium B
		            connect attachpoint G_Long_Brick hotspot
		            connect face G_Long_Brick hotspot
		            connect chin G_Medium_Brick hotspot
		            connect leftfoot G_Medium_Brick hotspot
		            connect lefthand G_Small_Brick hotspot
		            connect leftleg G_Small_Brick hotspot
               }
            }
         }
         SetSelector
         {
            ConstructionLogic 0 50
            set hotspot
            {
               version
               { 
		Visual building x academy age3
                        connect LeftFoot CypressA hotspot
                        connect RightFoot CypressA hotspot
ReplaceTexture Building X Wall age2/Building X Wall age2acad
ReplaceTexture Building X roof age2/building x roof age2acad
ReplaceTexture building x temple age2/building x temple age3
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction Medium A
		            connect attachpoint G_Long_Brick hotspot
		            connect face G_Long_Brick hotspot
		            connect chin G_Medium_Brick hotspot
		            connect leftfoot G_Medium_Brick hotspot
		            connect lefthand G_Small_Brick hotspot
		            connect leftleg G_Small_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction Medium B
		            connect attachpoint G_Long_Brick hotspot
		            connect face G_Long_Brick hotspot
		            connect chin G_Medium_Brick hotspot
		            connect leftfoot G_Medium_Brick hotspot
		            connect lefthand G_Small_Brick hotspot
		            connect leftleg G_Small_Brick hotspot
               }
            }
         }
      }
   }
}

//==============================================================================
anim death
{
   SetSelector
   {
      SetSelector
      {
         TechLogic age 3/age 4
         SetSelector
         {
            ConstructionLogic 0 50
            set hotspot
            {
               version
               {
		Visual building x academy_death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
					connect Smoke2 Dust hotspot
					connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction Medium A
		            connect attachpoint G_Long_Brick hotspot
		            connect face G_Long_Brick hotspot
		            connect chin G_Medium_Brick hotspot
		            connect leftfoot G_Medium_Brick hotspot
		            connect lefthand G_Small_Brick hotspot
		            connect leftleg G_Small_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction Medium B
		            connect attachpoint G_Long_Brick hotspot
		            connect face G_Long_Brick hotspot
		            connect chin G_Medium_Brick hotspot
		            connect leftfoot G_Medium_Brick hotspot
		            connect lefthand G_Small_Brick hotspot
		            connect leftleg G_Small_Brick hotspot
               }
            }
         }
         SetSelector
         {
            ConstructionLogic 0 50
            set hotspot
            {
               version
               { 
		Visual building x academy age3_death
ReplaceTexture Building X Wall age2/Building X Wall age2acad
ReplaceTexture Building X roof age2/building x roof age2acad
ReplaceTexture building x temple age2/building x temple age3
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
					connect Smoke2 Dust hotspot
					connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction Medium A
		            connect attachpoint G_Long_Brick hotspot
		            connect face G_Long_Brick hotspot
		            connect chin G_Medium_Brick hotspot
		            connect leftfoot G_Medium_Brick hotspot
		            connect lefthand G_Small_Brick hotspot
		            connect leftleg G_Small_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction Medium B
		            connect attachpoint G_Long_Brick hotspot
		            connect face G_Long_Brick hotspot
		            connect chin G_Medium_Brick hotspot
		            connect leftfoot G_Medium_Brick hotspot
		            connect lefthand G_Small_Brick hotspot
		            connect leftleg G_Small_Brick hotspot
               }
            }
         }
      }
   }
}